<template>
  <div class="father">
    <Teleport to='body'>
      <div class="son"></div>
    </Teleport>
  </div>
</template>

<script>
export default {

}
</script>

<style>
.father{
  width: 500px;
  height: 500px;
  background-color: powderblue;
  margin: 0 auto;
  transform: translateX(0);
}

.son {
  width: 200px;
  height: 200px;
  background-color: pink;
  position: fixed;
  top: 50px;
  left: 50px;
}
</style>
